package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjWorkSpareMaterialAnnex;

import java.util.List;

/**
 * <p>
 * 工单备件物料附件表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-10-26
 */
public interface ZjWorkSpareMaterialAnnexService extends IService<ZjWorkSpareMaterialAnnex> {

    /**
     * 根据工单备件物料表ID删除附件
     * @param workSpareMaterialIds 工单备件物料表ID
     */
    void deleteByWorkSpareMaterialIds(List<Long> workSpareMaterialIds);

    /**
     * 根据工单备件物料ID获取物料附件信息
     * @param workSpareMaterialIds 工单备件物料ID
     * @return
     */
    List<ZjWorkSpareMaterialAnnex> getByWorkSpareMaterialIds(List<Long> workSpareMaterialIds);
}
